package com.linkgap.cloud.repo;

import com.linkgap.cloud.entity.Clazz;
import com.linkgap.cloud.entity.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ClazzRepo extends JpaRepository<Clazz, Long>{


    List<Clazz> findByMainTeacher(Long teacherId);


}
